/*
 * =====================================================================================
 *
 *       Filename:  test_interface.c
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  2018年12月20日 17时12分39秒
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  YOUR NAME (), 
 *   Organization:  
 *
 * =====================================================================================
 */

#include <libnyb/libnyb-net.h>

int main(int argc, char **argv)
{
    get_all_interfaces();
    
    char ip[24] = {0};
    get_eth_ip("eth0", ip, sizeof(ip));

    char mask[24] = {0};
    get_eth_mask("eth0", mask, sizeof(mask));

    char brd[24] = {0};
    get_eth_broadcast("eth0", brd, sizeof(brd));

    char mac[32] = {0};
    get_eth_mac("eth0", mac, sizeof(mac));

    return 0;
}
